package com.mashibing.webmaster.service.impl;

import com.mashibing.webmaster.mapper.SmsRoleMapper;
import com.mashibing.webmaster.service.SmsRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @author SNA
 * @date 2025/10/27
 * @Description
 **/
@Service
public class SmsRoleServiceImpl implements SmsRoleService {

    @Autowired
    private SmsRoleMapper smsRoleMapper;


    /**
     * 根据用户id查询角色名称
     *
     * @param userId
     * @return
     */
    @Override
    public Set<String> getRoleName(Integer userId) {
        Set<String> roleNameSet = smsRoleMapper.findRoleNameByUserId(userId);
        return roleNameSet;
    }
}
